<?php

/**头像上传 组件
*使用示例:<?php $this->widget('ext.copyListIdwidget');?>
*/
class copyListIdwidget extends CWidget
{
    public $bt_act_str;

	public function init()
	{
	}

	public function run()
	{
        if(empty($this->bt_act_str)){
            $btn = '<div class="bt_act"><a id="idsCopy">复制</a><input type="hidden" id="pathId"></div>';
        }else{
            $btn = substr($this->bt_act_str,0,-6).'<a id="idsCopy">复制</a><input type="hidden" id="pathId"></div>';
        }
        echo '<script src="'.Yii::app()->request->baseUrl.'/public/js/art_dialog/artDialog.source.js?skin=blue"></script>';
        echo $btn;
		echo '<script src="'.Yii::app()->request->baseUrl.'/public/js/copylistid.js"></script>';

	}

}